package cn.huapu.power.energy.bean.vo;

import cn.huapu.power.energy.util.ObjectHelper;
import com.fasterxml.jackson.annotation.JsonIgnore;

import java.io.Serializable;
import java.text.DecimalFormat;

/**
 * @author jzx
 * @title: ElectForm
 * @projectName energy
 * @description: 电量电费表单实体类
 * @date 2019-5-299:48
 */
public class ElectFormVo implements Serializable {
    private static final long serialVersionUID = 2194000749181025537L;
    private String client;
    private Double yearVal;
    private Double monthVal;
    private Double dayVal;
    private String date;
    private Double jianPower;
    private Double fengPower;
    private Double pingPower;
    private Double guPower;
    private Double totalPower;
    private Double jianEFees;
    private Double fengEFees;
    private Double pingEFees;
    private Double guEFees;
    private Double baseEFeesMn;
    private Double baseEFeesTp;
    private Double totalEFees;

    public String getClient() {
        return client;
    }

    public void setClient(String client) {
        this.client = client;
    }

    public String getDate() {
        DecimalFormat decimalFormat = new DecimalFormat("###################.###########");//去掉小数点
        String month = null;
        String day = null;
        if(ObjectHelper.isNotEmpty(this.getMonthVal())&&ObjectHelper.isNotEmpty(this.getDayVal())){
            if(this.getMonthVal()<10){
                month="0"+decimalFormat.format(this.getMonthVal());
            }else{
                month = decimalFormat.format(this.getMonthVal());
            }
            if(this.getDayVal()<10){
                day="0"+decimalFormat.format(this.getDayVal());
            }else{
                day=decimalFormat.format(this.getDayVal());
            }
            date = decimalFormat.format(this.getYearVal())+"/"+month+"/"+day;
        }
        return date;
    }

    public void setDate(String date) {
        this.date = date;
    }

    public Double getJianPower() {
        return jianPower;
    }

    public void setJianPower(Double jianPower) {
        this.jianPower = jianPower;
    }

    public Double getFengPower() {
        return fengPower;
    }

    public void setFengPower(Double fengPower) {
        this.fengPower = fengPower;
    }

    public Double getPingPower() {
        return pingPower;
    }

    public void setPingPower(Double pingPower) {
        this.pingPower = pingPower;
    }

    public Double getGuPower() {
        return guPower;
    }

    public void setGuPower(Double guPower) {
        this.guPower = guPower;
    }

    public Double getTotalPower() {
        return totalPower;
    }

    public void setTotalPower(Double totalPower) {
        this.totalPower = totalPower;
    }

    public Double getJianEFees() {
        return jianEFees;
    }

    public void setJianEFees(Double jianEFees) {
        this.jianEFees = jianEFees;
    }

    public Double getFengEFees() {
        return fengEFees;
    }

    public void setFengEFees(Double fengEFees) {
        this.fengEFees = fengEFees;
    }

    public Double getPingEFees() {
        return pingEFees;
    }

    public void setPingEFees(Double pingEFees) {
        this.pingEFees = pingEFees;
    }

    public Double getGuEFees() {
        return guEFees;
    }

    public void setGuEFees(Double guEFees) {
        this.guEFees = guEFees;
    }

    public Double getBaseEFeesMn() {
        return baseEFeesMn;
    }

    public void setBaseEFeesMn(Double baseEFeesMn) {
        this.baseEFeesMn = baseEFeesMn;
    }

    public Double getBaseEFeesTp() {
        return baseEFeesTp;
    }

    public void setBaseEFeesTp(Double baseEFeesTp) {
        this.baseEFeesTp = baseEFeesTp;
    }

    public Double getTotalEFees() {
        return totalEFees;
    }

    public void setTotalEFees(Double totalEFees) {
        this.totalEFees = totalEFees;
    }


    public Double getYearVal() {
        return yearVal;
    }

    public void setYearVal(Double yearVal) {
        this.yearVal = yearVal;
    }

    public Double getMonthVal() {
        return monthVal;
    }

    public void setMonthVal(Double monthVal) {
        this.monthVal = monthVal;
    }


    public Double getDayVal() {
        return dayVal;
    }

    public void setDayVal(Double dayVal) {
        this.dayVal = dayVal;
    }
}
